#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 27 09:37:27 2018

@author: chenliheng
"""

str = "李明明"

result = str.startswith("李", 0,2)

print(result)

str2 = "1234.5"

# 指定了长度后，使用空格或指定字符填充字符串空白位
str3 = str2.ljust(len(str2)+1, "0")
print(str3)